package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.dto.DeviceDataDto;
import com.zzyl.nursing.dto.DeviceDto;
import com.zzyl.nursing.dto.ElderSaveDTO;
import com.zzyl.nursing.vo.DeviceDataPointVo;
import com.zzyl.nursing.vo.ElderInfoVo;
import com.zzyl.nursing.vo.FamilyElderVo;

import java.util.List;
import java.util.Map;

/**
 * TODO
 *
 * @Date 2025/10/29 17:07
 */

public interface FamilyMemberElderService extends IService<FamilyMemberElder> {
    /**
     * 绑定家人
      * @param elderSaveDTO
     */
    void add(ElderSaveDTO elderSaveDTO);

    /**
     * 查询家人列表
     */
    List<FamilyElderVo> my();

    /**
     * 查询家人列表(分页查询）
     * @return
     */
    List<ElderInfoVo> listPage();


    /**
     * 查询健康数据
     * @param dto
     */
    Map<String,Object> queryDevicePropertyStatus(DeviceDto dto);

    /**
     * 按天统计查询指标数据
     * @return
     */
    List<DeviceDataPointVo> queryDeviceDataListByDay(DeviceDataDto dto);

    /**
     * 按天统计查询指标数据
     * @return
     */
    List<DeviceDataPointVo> queryDeviceDataListByWeek(DeviceDataDto dto);

    /**
     * 解绑
     * @param id
     */
    void deleteById(Long id);
}
